<template>
  <div class="preview-paper scroll">
    <h3 class="paper-name">{{name}}</h3>
    <ul class="list">
        <li class="item" v-for="(item, i) in data" :key="i">
            <h4 class="name">{{i + 1}}. {{item.name}}</h4>
            <div v-for="(o, index) in item.options" :key="index">{{map[index]}}: {{o}}</div>
        </li>
    </ul>
  </div>
</template>

<script>
export default {
    props: ['data', 'name'],
    data() {
        return {
            map: {
                0: 'A',
                1: 'B',
                2: 'C',
                3: 'D',
                4: 'E',
                5: 'F',
                6: 'G',
                7: 'H',
                8: 'I',
                9: 'J',
                10: 'K',
            }
        }
    }
};
</script>

<style scoped lang="scss">
.preview-paper {
    line-height: 1.5;
    height: 400px;
}


.paper-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}


.name {
    font-size: 17px;
}

.item {
    margin: 20px 0;
}
</style>
